/* css/style.css */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Microsoft YaHei', 'Segoe UI', sans-serif;
    line-height: 1.7;
    color: #333;
    background-color: #f8f9fa;
}

a {
    text-decoration: none;
    color: inherit;
    transition: color 0.3s;
}

a:hover {
    color: #0066cc;
}

ul {
    list-style: none;
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

/* Header & Navigation */
header {
    background: white;
    color: white;
    padding: 15px 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.8em;
    font-weight: bold;
    color: dimgrey;
}

.logo span {
    color: #00c8ff;
}

nav ul {
    display: flex;
    gap: 30px;
}

nav a {
    color: dimgrey;
    font-size: 1.05em;
    font-weight: 500;
}

nav a:hover {
    color: black;
}

/* Buttons */
.btn {
    display: inline-block;
    background: #1a3b66;
    color: white;
    padding: 12px 28px;
    border-radius: 6px;
    font-size: 1em;
    font-weight: 500;
    transition: all 0.3s;
    border: none;
    cursor: pointer;
}

.btn:hover {
    background: #005aa3;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(26,59,102,0.3);
}

.btn-outline {
    background: transparent;
    border: 2px solid white;
    margin-left: 15px;
}

.btn-outline:hover {
    background: rgba(255,255,255,0.1);
}

.btn-light {
    background: white;
    color: #1a3b66;
}

.btn-light:hover {
    background: #f0f0f0;
}

/* Main Layout */
main {
    min-height: calc(100vh - 120px);
}

/* Sections */
section {
    margin-bottom: 60px;
}

h1, h2, h3, h4 {
    color: #1a3b66;
    margin-bottom: 15px;
    line-height: 1.3;
}

h1 {
    font-size: 2.5em;
}

h2 {
    font-size: 2em;
    text-align: center;
}

h3 {
    font-size: 1.4em;
    color: #2c5282;
}

.subtitle {
    color: #666;
    font-size: 1.1em;
    max-width: 700px;
    margin: 0 auto 30px;
}

.text-center {
    text-align: center;
}

/* Hero Section */
.hero {
    background: url(../images/1.jpg) no-repeat center center/cover;
    text-align: center;
    padding: 450px 20px 120px;
}

.hero-content h1 {
    font-size: 3.2em;
    margin-bottom: 20px;
    animation: fadeInUp 1s ease;
}

.hero-content p {
    font-size: 1.3em;
    max-width: 800px;
    margin: 0 auto 30px;
    opacity: 0.9;
    animation: fadeInUp 1s ease 0.2s both;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Intro Section */
.intro {
    padding: 80px 0;
    background: white;
}

.stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 20px;
    margin-top: 30px;
}

.stat-item {
    text-align: center;
    padding: 15px;
    background: #f0f5ff;
    border-radius: 8px;
    border: 1px solid #d0e0ff;
}

.stat-item strong {
    display: block;
    font-size: 1.8em;
    color: #1a3b66;
}

/* Products Preview */
.products-preview {
    background: #f0f5ff;
    padding: 80px 0;
}

.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin: 40px 0;
}

.product-card {
    background: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.08);
    transition: transform 0.3s;
}

.product-card:hover {
    transform: translateY(-10px);
}

.product-card img {
    width: 100%;
    height: 180px;
    object-fit: cover;
}

.product-card h3 {
    padding: 15px 15px 10px;
    font-size: 1.3em;
}

.product-card p {
    padding: 0 15px 15px;
    font-size: 0.95em;
    color: #555;
}

/* Clients Section */
.clients {
    padding: 80px 0;
    background: white;
}

.client-logos {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 50px;
    margin: 40px 0;
    opacity: 0.8;
}

.client-logos img {
    height: 60px;
    filter: grayscale(100%);
    transition: all 0.3s;
}

.client-logos img:hover {
    filter: grayscale(0);
    transform: scale(1.1);
}

.case-study {
    background: #f8f9fa;
    border-left: 4px solid #1a3b66;
    padding: 20px 25px;
    margin-top: 30px;
    border-radius: 0 8px 8px 0;
}

.case-study h3 {
    color: #1a3b66;
}

/* CTA Section */
.cta {
    background: #1a3b66;
    color: white;
    text-align: center;
    padding: 60px 20px;
}

.cta h2 {
    font-size: 2.2em;
    margin-bottom: 15px;
}

.cta p {
    font-size: 1.2em;
    opacity: 0.9;
    max-width: 700px;
    margin: 0 auto 30px;
}

.cta .btn {
    background: white;
    color: #1a3b66;
    font-weight: 600;
}

.cta .btn:hover {
    background: #f0f0f0;
}

/* Page Banner */
.page-banner {
    background: url(../images/b.png) no-repeat center center/cover;
    color: white;
    text-align: center;
    padding: 120px 20px 80px;
}

.page-banner h1 {
    font-size: 2.8em;
    margin-bottom: 15px;
    color: white;
}

.page-banner p {
    font-size: 1.3em;
    opacity: 0.9;
}

/* Timeline */
.timeline {
    position: relative;
    margin: 40px 0;
    padding-left: 30px;
    border-left: 2px solid #00c8ff;
}

.timeline-item {
    margin-bottom: 30px;
    position: relative;
}

.timeline-year {
    position: absolute;
    left: -42px;
    top: 0;
    width: 30px;
    height: 30px;
    background: #1a3b66;
    color: white;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-weight: bold;
    font-size: 0.9em;
}

.timeline-content {
    background: white;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 3px 10px rgba(0,0,0,0.08);
    border: 1px solid #eee;
}

/* Values Grid */
.values-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 20px;
    margin: 40px 0;
}

.value-card {
    text-align: center;
    padding: 25px 20px;
    background: #f0f5ff;
    border-radius: 8px;
    border: 1px solid #d0e0ff;
}

.value-card h3 {
    color: #1a3b66;
    margin-bottom: 10px;
}

/* Certificates */
.certs-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 25px;
    margin: 30px 0;
}

.cert-item {
    text-align: center;
}

.cert-item img {
    width: 100%;
    height: 140px;
    object-fit: cover;
    border-radius: 8px;
    box-shadow: 0 3px 10px rgba(0,0,0,0.1);
}

/* Product Detail Pages */
.product-category {
    margin: 50px 0;
}

.product-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    margin-bottom: 60px;
    align-items: center;
}

.product-row.reverse {
    grid-template-columns: 1fr 1fr;
}

.product-row.reverse .product-image {
    order: 2;
}

.product-image img {
    width: 100%;
    border-radius: 10px;
    box-shadow: 0 8px 25px rgba(0,0,0,0.1);
}

.product-info table {
    width: 100%;
    margin: 20px 0;
    border-collapse: collapse;
}

.product-info th,
.product-info td {
    padding: 10px;
    text-align: left;
    border-bottom: 1px solid #eee;
}

.product-info th {
    width: 120px;
    font-weight: 600;
    color: #1a3b66;
    background: #f8f9ff;
}

/* Services Page */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin: 40px 0;
}

.service-card {
    background: white;
    padding: 30px 25px;
    border-radius: 10px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.08);
    text-align: center;
    transition: transform 0.3s;
}

.service-card:hover {
    transform: translateY(-10px);
}

.service-icon {
    font-size: 2.5em;
    margin-bottom: 15px;
}

/* Process Steps */
.process-steps {
    margin: 50px 0;
}

.step {
    display: flex;
    margin-bottom: 30px;
    align-items: flex-start;
}

.step:last-child {
    margin-bottom: 0;
}

.step-number {
    width: 40px;
    height: 40px;
    background: #1a3b66;
    color: white;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-weight: bold;
    margin-right: 20px;
    flex-shrink: 0;
}

.step-content {
    flex: 1;
}

.step-content h3 {
    margin-bottom: 8px;
    color: #1a3b66;
}

/* Testimonials */
.testimonials {
    margin: 40px 0;
}

.testimonials blockquote {
    padding: 25px;
    margin: 20px 0;
    background: #f8f9fa;
    border-left: 4px solid #00c8ff;
    font-style: italic;
    border-radius: 0 8px 8px 0;
}

/* Blog Grid */
.blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
    margin: 40px 0;
}

.blog-post {
    background: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.08);
    transition: transform 0.3s;
}

.blog-post:hover {
    transform: translateY(-10px);
}

.blog-post img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.post-meta {
    color: #666;
    font-size: 0.9em;
    padding: 15px 15px 5px;
}

.blog-post h3 {
    padding: 0 15px;
    font-size: 1.2em;
}

.blog-post p {
    padding: 0 15px;
    color: #555;
}

.read-more {
    display: block;
    text-align: right;
    padding: 10px 15px 15px;
    color: #0066cc;
    font-weight: 500;
}

.newsletter {
    background: #f0f5ff;
    padding: 40px;
    border-radius: 10px;
    text-align: center;
    margin: 60px 0;
}

.newsletter h2 {
    color: #1a3b66;
}

/* Contact Page */
.contact-info {
    margin: 30px 0;
}

.info-item {
    display: flex;
    margin-bottom: 15px;
    line-height: 1.5;
}

.info-item strong {
    width: 100px;
    min-width: 100px;
    color: #1a3b66;
}

.info-item span {
    flex: 1;
}

/* Form Styles */
form input,
form select,
form textarea {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 1em;
}

form label {
    display: block;
    margin: 15px 0 5px;
    font-weight: 500;
}

/* Footer */
footer {
    background: #1a3b66;
    color: white;
    padding: 60px 0 30px;
}

footer h3 {
    color: white;
    margin-bottom: 20px;
    font-size: 1.2em;
}

footer ul li {
    margin-bottom: 10px;
}

footer a:hover {
    color: #00c8ff;
}

.footer-bottom {
    text-align: center;
    margin-top: 40px;
    padding-top: 20px;
    border-top: 1px solid rgba(255,255,255,0.1);
    color: #bbb;
    font-size: 0.9em;
}

/* Responsive Design */
@media (max-width: 992px) {
    .hero-content h1 {
        font-size: 2.8em;
    }
    .product-row,
    .product-row.reverse {
        grid-template-columns: 1fr;
    }
    .product-row.reverse .product-image {
        order: 0;
    }
}

@media (max-width: 768px) {
    header .container {
        flex-direction: column;
        gap: 15px;
    }
    nav ul {
        gap: 15px;
    }
    .hero-content h1 {
        font-size: 2.3em;
    }
    .hero-content p {
        font-size: 1.1em;
    }
    .page-banner h1 {
        font-size: 2.2em;
    }
    .cta h2 {
        font-size: 1.8em;
    }
    .blog-grid {
        grid-template-columns: 1fr;
    }
    .container {
        width: 95%;
    }
}

@media (max-width: 480px) {
    .btn {
        display: block;
        width: 100%;
        margin-bottom: 10px;
    }
    .btn-outline {
        margin-left: 0;
    }
    .hero {
        padding: 140px 20px 100px;
    }
}
